<!DOCTYPE html>
<!--suppress ALL-->
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>顾客列表</title>
</head>
<body>
<div th:include="/back/common/css_js :: main"></div>
<div class="container">
    <table class="table">
        <tr>
            <th>ID</th>
            <td>顾客名</td>
            <td>性别</td>
            <td>身份证</td>
            <td>电话号码</td>
            <td>是否入住</td>
            <td>入住日期</td>
            <td>退房时间</td>
            <td>押金</td>
            <td>操作</td>
        </tr>
        <tr th:each="customer:${customers}">
            <td th:text="${customer.id}"></td>
            <td th:text="${customer.cname}"></td>
            <td th:text="${customer.sex}"></td>
            <td th:text="${customer.idCard}"></td>
            <td th:text="${customer.mobile}"></td>
            <td th:text="${customer.checkin}"></td>
            <td th:text="${customer.checkinTime}"></td>
            <td th:text="${customer.outTime}"></td>
            <td th:text="${customer.deposit}"></td>
            <td>
                <a th:href="@{/intake/customer/message}" class="btn btn-primary btn-sm">添加</a>
                <a th:href="@{/intake/customer/update}" class="btn btn-primary btn-sm">修改</a>
            </td>
        </tr>
    </table>
    <div class="container mt-2" align="center" style="border: rgba(0,0,255,0) 6px solid">
        <input th:onclick="alterHouse()" type="submit" class="btn btn-success mt-2"
               style="max-width: 400px;margin:40px auto" th:value="请确认信息是否正确">
    </div>
</div>
<script>
    function alterHouse() {
        location.href = "/hotel/intake/alterHouse";
    }
</script>

</body>
</html>